Skip to main content

Remove Duplicate Rows

AutomatR.DefaultActivities.Datatable.RemoveDuplicateRows

The "Remove Duplicate Rows" activity in AutomatR is designed to eliminate duplicate rows from a specified DataTable variable, retaining only the first occurrence. This activity aids in maintaining data integrity and consistency within workflows by ensuring unique rows within the DataTable.

Properties

NameDescription
Input
Data TableEnter the DataTable variable from which duplicate rows need to be removed. DataTable variable or argument.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Remove Duplicate Rows" activity. This can be useful for handling synchronization issues. Integer variable or argument containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns the DataTable with unique rows, free from duplicate occurrences. DataTable variable or argument.

How to use:

  1. Drag and drop the "Remove Duplicate Rows" activity onto the workflow.
  2. Configure the properties by specifying the DataTable variable from which duplicate rows need to be removed.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to obtain the DataTable with unique rows, removing any duplicate occurrences.

Example: Consider an example where the "Remove Duplicate Rows" activity is used to ensure unique employee records in a DataTable named "employeeData":

Remove Duplicate Rows:
Display Name: "Remove Duplicates"
Data Table: employeeData
Result: uniqueEmployeeData

In this example, the activity removes duplicate rows from the "employeeData" DataTable, retaining only the first occurrence of each unique row. The result is stored in the "uniqueEmployeeData" DataTable variable for further use in the workflow.